<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="Windows-1252">
<title>TYPE=</title>
<style>@import url(coUA.css);</style>
</HEAD>

<BODY>
<h3><a name="htmlattr_0001000201007b00"></a>TYPE= </h3>
<p>
<b>TYPE=BUTTON</b> | <b>RESET</b> | <b>SUBMIT</b><BR></p>
<p>
The author can define a button that will have UI that indicates default for the ENTER key (a dark border), and a button that will have default behavior for the ESC key. </p>
<p>
BUTTON &#09;Command Button. </p>
<p>
RESET &#09;RESET is a button that when pressed resets the form's fields to their specified initial values. The label to be displayed on the button may be specified just as for the SUBMIT button. </p>
<p>
SUBMIT &#09;SUBMIT is a button that when pressed submits the form. You can use the <a href="html065s.htm">VALUE=</a> attribute to provide a non- editable label to be displayed on the button. The default label is application-specific. If a SUBMIT button is pressed in order to submit the form, and that button has a <a href="html2ckw.htm">NAME=</a> attribute specified, then that button contributes a name/value pair to the submitted data. Otherwise, a SUBMIT button makes no contribution to the submitted data. </p>
<p>
Default key bindings will exist for: <BR>&lt;linput type=submit&gt; - Enter key <BR>&lt;button type=submit&gt; - Enter key <BR>&lt;button type=reset&gt; - ESC key <BR>&lt;input type=reset &gt;- ESC key </p>
<p>
Default behavior is scoped to the form, or the document - if the focus is in the form, only the submit button within that form has a bold border and will fire a click event if ENTER is hit. (or in the case of ESC, the reset button within the form would fire a click event) If focus is on the document, only the default button on the document (if, of course, there is one) will appear with a bold border - and if the user hits ENTER, the default button for the document will fire a click event. And with focus on the document the ESC key will fire the onclick handler for a reset button that exists on the document. </p>
<p>
<b>Applies To</b></p>
<p>
<a href="html7ueo.htm">BUTTON</a> </p>
</BODY>
</HTML>
